/**
 * @filename:Proorder Dec 22, 2023
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**   
 * @Description:TODO(生产订单实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_prd_task")
@ApiModel(value="t_prd_task对象", description="生产订单表")
public class Proorder extends Model<Proorder> {

	private static final long serialVersionUID = 1703230316421494L;
	
	@TableId(value ="id", type = IdType.AUTO)
	@ApiModelProperty(name = "id" , value = "生产订单id")
    private Long id;
    
    @TableField(value = "billNo") 	
	@ApiModelProperty(name = "billNo" , value = "单据编号")
    private String billNo;
    
    @TableField(value = "type") 	
	@ApiModelProperty(name = "type" , value = "单据类型")
    private String type;
    
    @TableField(value = "createTime") 	
	@ApiModelProperty(name = "createTime" , value = "单据日期")
    private Date createTime;
    
    @TableField(value = "prdorg") 	
	@ApiModelProperty(name = "prdorg" , value = "生产组织")
    private String prdorg;
    
    @TableField(value = "workShop") 	
	@ApiModelProperty(name = "workShop" , value = "生产车间")
    private String workShop;
    
    @TableField(value = "planner") 	
	@ApiModelProperty(name = "planner" , value = "计划员")
    private String planner;
    
    @TableField(value = "updateTime") 	
	@ApiModelProperty(name = "updateTime" , value = "修改日期")
    private Date updateTime;
    
    @TableField(value = "entryId") 	
	@ApiModelProperty(name = "entryId" , value = "分录id")
    private Long entryId;

    
    @TableField(value = "createUserName") 	
	@ApiModelProperty(name = "createUserName" , value = "创建人")
    private String createUserName;


    @TableField(value = "workShopCount")
    @ApiModelProperty(name = "workShopCount" , value = "车间数量")
    private Double workShopCount;
    
    @TableField(value = "createUserId") 	
	@ApiModelProperty(name = "createUserId" , value = "创建人id")
    private Long createUserId;
    
    @TableField(value = "updateUserName") 	
	@ApiModelProperty(name = "updateUserName" , value = "修改时间")
    private String updateUserName;
    
    @TableField(value = "auditUserName") 	
	@ApiModelProperty(name = "auditUserName" , value = "审核人")
    private String auditUserName;
    
    @TableField(value = "auditTime") 	
	@ApiModelProperty(name = "auditTime" , value = "审核时间")
    private Date auditTime;
    
    @TableField(value = "basiessStatus") 	
	@ApiModelProperty(name = "basiessStatus" , value = "业务状态")
    private String basiessStatus;


    @TableField(value = "status")
    @ApiModelProperty(name = "status" , value = "单据状态")
    private String status;

    @TableField(value = "remark")
    @ApiModelProperty(name = "remark" , value = "备注")
    private String remark;

    @TableField(value = "pbomNo")
    @ApiModelProperty(name = "pbomNo" , value = "用料清单号")
    private String pbomNo;

    @TableField(value = "scanTime")
    @ApiModelProperty(name = "scanTime" , value = "扫码开始时间")
    private Date scanTime;

    @TableField(value = "scanEndTime")
    @ApiModelProperty(name = "scanEndTime" , value = "扫码结束时间")
    private Date scanEndTime;

    @TableField(exist = false)
    private List<Proorderlist> proorderlist;
	@Override
    public Serializable pkVal() {
        return this.id;
    }
   
}
